<?php

CCore::Using('base.collection');

class CCoreLabsWebMailHeader
{
	const OBJECT_ERROR_CODE = 1800;

	public $Index;
	public $Uid;
	public $Subject;
	public $Size;
	public $Date;
	public $From;
	public $To;
	public $Cc;
	public $Bcc;
	public $HasAttachments;
	public $IsUnread;
	public $IsFlagged;
	public $IsAnswered;
	public $Flags;
}

class CCoreLabsWebMailHeaderCollection extends ACoreBaseCollection
{
	const OBJECT_ERROR_CODE = 1900;

	public $Hash;
	public $Page;
	public $Folder;
	public $Search;
	public $Count;

	/**
	 * @return CCoreLabsWebMailHeaderCollection
	 */
	public function __construct()
	{
		parent::__construct();
	}

	/**
	 * @param CCoreLabsWebMailHeader $WebMailHeader
	 * @return void
	 */
	public function Add(CCoreLabsWebMailHeader $WebMailHeader)
	{
		parent::Add($WebMailHeader);
	}
}